<!DOCTYPE html>
<html>
<head>
	<meta charset="utf8">
	<title></title>
</head>
<body>
	<script type="text/javascript">
		var result = result||[];
		result.push("script-start");

    setTimeout(function(){
      var gui = require('nw.gui');
      var port = gui.App.argv[0]||13013;
      var client = require('net').createConnection(port);
      console.log(JSON.stringify(result));
      client.write(JSON.stringify(result));
    },1000);
	</script>
</body>
</html>